package com.example.jt_manager_service;

import com.example.jt_manager_pojo.Content;
import com.example.jt_manager_pojo.ContentCategory;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ContentService {
//    内容分类
    public List<ContentCategory> queryCatById(long id);
    public void addCategory(ContentCategory contentCategory,long id);
    public int setParent(long id,boolean isParent);
    public void delCategory(long id,long parentId);
    public void updateNameById(long id,String name);
    public PageInfo<Content> queryList(long categoryId,int page,int size);
    public void updateContent(Content content);
    public void deleteContentsByIds(List<Long> ids);
    public void insertContent(Content content);
}
